package com.imiku.service;

import com.imiku.model.MenuInfo;
import com.imiku.model.Meta;
import com.imiku.repository.MenuInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuService {

    @Autowired
    private MenuInfoRepository menuInfoRepository;

    public List<MenuInfo> findByParentId() {
        return menuInfoRepository.findByParentId(0);
    }
}
